package com.alldios.deposit.api.bid;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alldios.deposit.anno.Desc;
import com.alldios.deposit.api.HfReq;


public class LoansReq extends HfReq {


    @Desc("订单号")
    public String OrdId;


    @Desc("订单日期")
    public String OrdDate;


    @Desc("出账客户号")
    public String OutCustId;


    @Desc("交易金额")
    public String TransAmt;


    @Desc("扣款手续费")
    public String Fee;


    @Desc("订单号")
    public String SubOrdId;


    @Desc("订单日期")
    public String SubOrdDate;


    @Desc("入账客户号")
    public String InCustId;


    @Desc("分账账户串")
    public String DivDetails;


    @Desc("分账商户号")
    public String DivCustId;


    @Desc("分账账户号")
    public String DivAcctId;


    @Desc("分账金额")
    public String DivAmt;


    @Desc("手续费收取对象标志 I/O")
    public String FeeObjFlag;


    @Desc("入参扩展域")
    public String ReqExt;


    @Desc("代金券金额")
    public String LoansVocherAmt;


    @Desc("项目 ID")
    public String ProId;


    @Desc("实际到账人")
    public String ActualInCustId;

    public void setDetails() {
        JSONArray array = new JSONArray();
        JSONObject obj = new JSONObject();
        obj.put("DivCustId", DivCustId);
        obj.put("DivAcctId", DivAcctId);
        obj.put("DivAmt", DivAmt);
        obj.put("FeeObjFlag", FeeObjFlag);
        array.add(obj);
        DivDetails = array.toJSONString();
    }

    public void setExts() {
        ReqExt = "{\"ProId\":\"" + ProId + "\"}";
    }

    @Override
    public String[] signList() {
        return new String[]{"Version", "CmdId ", "MerCustId", "OrdId", "OrdDate", "OutCustId", "TransAmt", "Fee", "SubOrdId", "SubOrdDate", "InCustId", "DivDetails", "ReqExt", "ActualInCustId", "BgRetUrl"};
    }
}
